<?php include "../../coresection/connection.php";?>
<?php include "../../coresection/checkSession.php";?>
<?php include "../../coresection/admin-product.php";?>
<?php include "../../coresection/order-list.php";?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--網站語言-->
    <meta http-equiv="Content-Language" content="zh-cn">
    <!--網站編碼-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><?php include '../coresection/title.php'; ?></title>
    <link rel="Shortcut Icon" href="../coresection/logoicon.ico">


</head>

<body>



<?php


$new_detail_name          = addslashes($_REQUEST['detail_name']);
$new_detail_price         = addslashes($_REQUEST['detail_price']);
$new_detail_at           = addslashes($_REQUEST['detail_at']);
$new_detail_publish     = addslashes($_REQUEST['detail_publish']);





$sql = "INSERT INTO dishes (
product_name,
price,
at,
publish
)

value (
'$new_detail_name',
'$new_detail_price',
'$new_detail_at',
'$new_detail_publish'
)";


$query = mysql_query($sql) or die ('添加数据失败！！');




mysql_close($con);






?>






<script type="text/javascript">

    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "detail-list.php?sys_part=<? echo $system_part ?>";
</script>
</body>